#ifndef UPDATEMESSAGESTATUSTHREAD_H
#define UPDATEMESSAGESTATUSTHREAD_H

#include "../data/userprofile.h"

#include <QMutex>
#include <QWaitCondition>
#include <QThread>
#include <QObject>

class UpdateMessageStatusThread : public QThread
{
    Q_OBJECT
public:
    explicit UpdateMessageStatusThread(QObject *parent = 0);

        void pushMsgStatusFriendProfile(UserProfile* friendProfile);
protected:
    void run();

    QMutex sync;
    QWaitCondition condition;

    QList <UserProfile* > m_queueFriendProfile;

};

#endif // UPDATEMESSAGESTATUSTHREAD_H
